package com.crazy.crazymodel.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Date: 2024-05-06-19:30
 * @Author: Zheng Zeliang
 * 持仓表
 */

@TableName(value = "position")
@Data
public class Position implements Serializable {
    /**
     * 持仓ID
     */
    @TableId(value = "positionId")
    private Integer positionId;

    /**
     * 客户ID
     */
    private Integer customerID;

    /**
     * 产品ID
     */
    private Integer productID;

    /**
     * 持仓份额
     */
    private BigDecimal share;

    /**
     * 冻结的份额
     */
    private BigDecimal freezeShare;

    /**
     * 持仓金额
     */
    private BigDecimal amount;

    /**
     * 生成时间
     */
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 银行卡号
     */
    private String bankCardNumber;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
